# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=iso-codes

pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=3.52
pkgrel=1
pkgdesc="Lists of the country, language, and currency names (mingw-w64)"
arch=('any')
license=('LGPL')
url="http://pkg-isocodes.alioth.debian.org/"
source=(http://pkg-isocodes.alioth.debian.org/downloads/${_realname}-$pkgver.tar.xz{,.sig})
md5sums=('0f3f6ce16b3cf4b92538b8255e0dfa92'
         'SKIP')

build() {
  cd ${srcdir}/${_realname}-${pkgver}
  ./configure \
    --prefix=${MINGW_PREFIX} \
    --build=${MINGW_CHOST} \
    --host=${MINGW_CHOST}
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make DESTDIR="$pkgdir" pkgconfigdir=${MINGW_PREFIX}/lib/pkgconfig install
}
